Skip to content

Running unit tests in CI#89

Merged
alan-george-lk merged 22 commits intomainfrom
feature/ci_unit_tests
Apr 14, 2026
Merged

Running unit tests in CI#89
alan-george-lk merged 22 commits intomainfrom
feature/ci_unit_tests

Conversation

@alan-george-lk
Copy link
Copy Markdown
Contributor

@alan-george-lk alan-george-lk commented Apr 9, 2026

This PR adjusts the CI to do the following:

  • Build stage now builds release-tests and release-examples
  • An additional step to run the unit tests is added
  • An existing folder integration/ existed in the tests directory, but contained unit-level testing. A new folder unit/ was added, which is now being executed in CI
    • Note: "Integration" tests are scoped as tests that require a LiveKit server instance running, and ideally will be invoked in CI on a later PR to match other SDK convention
  • Changes needed to get the unit tests buildable across all platforms

Note: part of the time spent on this PR was spent investigating a separate testing stage for unit testing (and upcoming clang-tidy), but passing artifacts between stages became pretty cumbersome and affected overall build usefulness. I think a future refactor of the CI jobs should be considered to improve this.

@alan-george-lk alan-george-lk changed the title Draft - Running unit tests in CI Running unit tests in CI Apr 10, 2026
Copy link
Copy Markdown
Contributor

@stephen-derosa stephen-derosa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me thanks for doing this!

Comment thread .github/workflows/builds.yml Outdated
Comment thread .github/workflows/builds.yml
Comment thread .github/workflows/builds.yml
Comment thread src/tests/unit/test_audio_processing_module.cpp Outdated
Comment thread src/tests/unit/test_audio_processing_module.cpp Outdated
Comment thread .github/workflows/builds.yml Outdated
Comment thread .github/workflows/builds.yml
Comment thread src/tests/CMakeLists.txt
Comment thread src/tests/CMakeLists.txt Outdated
Comment thread src/tests/CMakeLists.txt Outdated
Copy link
Copy Markdown
Collaborator

@xianshijing-lk xianshijing-lk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one nit, lgtm if the docker builds are functional and fast.

Comment thread .github/workflows/docker-images.yml
@alan-george-lk alan-george-lk force-pushed the feature/ci_unit_tests branch from c7bb373 to d6936cb Compare April 14, 2026 01:22
Copy link
Copy Markdown
Contributor

@stephen-derosa stephen-derosa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm -- thanks for setting this up!

Comment thread .github/workflows/builds.yml
@alan-george-lk alan-george-lk merged commit c2684b7 into main Apr 14, 2026
25 checks passed
@alan-george-lk alan-george-lk deleted the feature/ci_unit_tests branch April 14, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants